import {
  get_file_name_cur_info,
  get_file_name_cur_info_time,
} from '../../../../../../../../../../../Func/get_file_name_cur_info';
import { get_file_path_prefix_cur_user_music } from '../../../../../Func/Set_file/Func/get_file_path_cur_user_music';
import { req_info_music_score_upload } from '../../../Classes/cla_req_info_music_score_upload';
import { spacename_score } from '../../../DataDefine/sourceData';

/**
 * path -->
 *
 * D:/class_laugh_files/user/${cur_user_id}/music/score/${cur_info.id}
 */
export function get_file_path_prefix_cur_user_music_cur_score(
  cur_info: req_info_music_score_upload
) {
  return `${get_file_path_prefix_cur_user_music(cur_info)}/${spacename_score}/${
    cur_info.id
  }`;
}

/**
 * full path -->
 *
 * D:/class_laugh_files/user/${cur_user_id}/music/score/${cur_info.id}/${cur_info.id}.${ext}
 */
export function get_file_cur_score(cur_info: req_info_music_score_upload) {
  return `${get_file_path_prefix_cur_user_music_cur_score(
    cur_info
  )}/${get_file_name_cur_info(cur_info)}`;
}

/**
 * full path -->
 *
 * D:/class_laugh_files/user/${cur_user_id}/music/score/${cur_info.id}/${cur_info.id}_${dueto_time}.${ext}
 */
export function get_file_cur_score_time(cur_info: req_info_music_score_upload) {
  return `${get_file_path_prefix_cur_user_music_cur_score(
    cur_info
  )}/${get_file_name_cur_info_time(cur_info)}`;
}
